/**
* <p>Title: Schedule.java</p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2013</p>
* @author majintao
* @date 2013-1-30
* @version 1.0
*/
package entity;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
 * <p>Title: Schedule</p>
 * <p>Description: </p>
 * <p>Company: mjt</p>
 * @author  majintao
 * @date   2013-1-30
 */
@Entity
@Table(name = "t_schedule")
public class Schedule {
	private Integer id;
	private String title;
	private String description;
	private java.util.Date start;
	private java.util.Date end;
	private String color;
	private Integer notice;
	private Timestamp remindTime;
	private User user;
	
	
	@Id
    @GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "title")
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	@Column(name = "description")
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	@Temporal(TemporalType.DATE)
	@Column(name = "start")
	public java.util.Date getStart() {
		return start;
	}
	public void setStart(java.util.Date start) {
		this.start = start;
	}
	@Temporal(TemporalType.DATE)
	@Column(name = "end")
	public java.util.Date getEnd() {
		return end;
	}
	public void setEnd(java.util.Date end) {
		this.end = end;
	}
	@Column(name = "color")
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	@Column(name = "notice")
	public Integer getNotice() {
		return notice;
	}
	public void setNotice(Integer notice) {
		this.notice = notice;
	}
	@Column(name = "remindtime")
	public Timestamp getRemindTime() {
		return remindTime;
	}
	public void setRemindTime(Timestamp remindTime) {
		this.remindTime = remindTime;
	}
	@ManyToOne
	@JoinColumn(name="user_id")
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	
}
